<?php
/**
 * Created by PhpStorm.
 * User: LaoJiu
 * Date: 2017/5/5
 * Time: 下午9:02
 */
require_once 'weixin.php';

$url = $_GET['url'];
//if (strpos($url,'yzpinhe') !== FALSE) {
//    $url = 'http://art.bjxfsd.com/';
//}
$options = array(
 			'token'=>'gixblXvfWI3iFb3OvnNfWRlXINvX8bXm', //填写你设定的key
 			'encodingaeskey'=>'zT3OTrRII7R5R3tMyyRI5ir3pcYc6C56iOWm1o6z5Y5', //填写加密用的EncodingAESKey
 			'appid'=>'wxbac2fb6e50fd7d8c', //填写高级调用功能的app id
 			'appsecret'=>'5dd83692120e3675fb0f86fb83fdf236' //填写高级调用功能的密钥
		);
$weObj = new Wechat($options);

echo json_encode($weObj->getJsSign($url));